-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DDW-245] Integrate react-polymorph render props in Daedalus #950
[DDW-245] Integrate react-polymorph render props in Daedalus #950
Conversation
…nts to use new API
…o Checkbox component.
… components' skin prop
…ore/ddw-245-integrate-react-polymorph-render-props-in-Daedalus [DDW-245] Pulls latest from develop branch
…ore/ddw-245-integrate-react-polymorph-render-props-in-Daedalus Pulls latest from develop branch into chore/ddw-245
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant work @MarcusHurney! Thanks for doing all the hard work to make my dreams for react-polymorph true 😉 specially love how this actually reduces our lines of code a bit while featuring a better component api (e.g: passing the skins directly, instead of jsx components)
Since this is a huge change, i would love to have one other approval before merging! (@nikolaglumac ?)
@DominikGuzei sure - I will review this on Monday. Still, we must be very careful due to all of the changes - especially in the NumericInput on the Send screen, special inputs on Wallet Settings screen, etc. @DominikGuzei would you be willing to sort out the 2 of remaining Todos? (publishing new React-Polymorph version + updating that version in package.json on Daedalus side?) |
This PR should not be merged before the 1.3 release cut-off. |
@DominikGuzei |
Hi @MarcusHurney @DominikGuzei - great work!
|
@DominikGuzei @MarcusHurney checkbox disabled state styles fixed! |
…ix duplicated styles
…-Daedalus' of https://github.com/input-output-hk/daedalus into chore/ddw-245-integrate-react-polymorph-render-props-in-Daedalus
@nikolaglumac @MarcusHurney this PR is ready for final review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @DominikGuzei @MarcusHurney 🎉
Everything is now working perfectly! 👍
Let's merge and release React-Polymoprh version and then update the package.json in this PR. After that it is ready to be merged!
…-Daedalus' of https://github.com/input-output-hk/daedalus into chore/ddw-245-integrate-react-polymorph-render-props-in-Daedalus
…ender-props-in-Daedalus
…ender-props-in-Daedalus
To upgrade to the latest version of `react-polymorph` (v8) we need to do two upgrades: - [x] upgrade to v7.2 (based on [this PR](input-output-hk/daedalus#950)) - [x] upgrade to v8 (based on [this PR](input-output-hk/daedalus#1139)) I made both upgrades as the two commits to this PR and it's probably easier to read if you code review the two commits individually (since the changes are orthogonal). I also have a README change that explains what `react-polymorph` v8 does but you can find something similar in the Daedalus PR I linked above. v8 also introduces large refactoring changes that makes a mess of the whole thing. I tried my best to make all the UI look the same while keeping the improvements from v8 but one thing I couldn't stop is that the font size is not 1px bigger across the app (which honestly is not a big deal so I didn't bother). There are probably small things that changed here in there but I manually compared the whole UI and everything looked close enough I don't think anybody would notice any difference that did occur.
This PR integrates the develop branch of react-polymorph into Daedalus.
Todo:
FormField
componentreact-polymorph PR 68
Review Checklist:
Basics
npm run test
)npm run dev
)npm run package
/ CI builds)npm run flow:test
)npm run lint
)npm run manage:translations
produces no changes)npm run storybook
)package-lock.json
andyarn.lock
files are updatedCode Quality
Testing
After Review:
done
on the Youtrack board